package com.tfswue.ershoujiaoyi;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

// 下面是新增的import
import io.swagger.v3.oas.annotations.OpenAPIDefinition;
import io.swagger.v3.oas.annotations.info.Info;

// 在类上加 @OpenAPIDefinition 注解，内容全中文
@OpenAPIDefinition(
        info = @Info(
                title = "校园二手交易平台API文档",
                version = "v1.0",
                description = "本平台提供校园二手商品的发布、交易、评价等API接口文档。"
        )
)
@SpringBootApplication
public class ErshoujiaoyiApplication {

    public static void main(String[] args) {
        SpringApplication.run(ErshoujiaoyiApplication.class, args);
    }

}
